package com.lingxu.module.sjtjfx.controller;

import com.lingxu.base.common.api.vo.Result;
import com.lingxu.module.risk.service.RiskService;
import com.lingxu.module.sjtjfx.entity.FieldDTO;
import com.lingxu.module.sjtjfx.service.TjfxService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * 类名称：$CLASSNAME$
 * <p>
 * 描述：
 * 创建人: yinxinjie
 * 创建时间: 2025-11-27 10:11:36
 */
@RestController
@RequestMapping("/sjtjfx")
public class TjfxController {

    @Resource
    private RiskService riskService;

    @Resource
    private TjfxService tjfxService;


    /**
     *
     *  模型领域总览
     * @return {@link List }<{@link FieldDTO }>
     */
    @GetMapping("/fieldOverview")
    public List<FieldDTO> fieldOverview() {
        return tjfxService.queryFieldOverview();
    }

    /**
     *
     *  预警数据总览
     * @return {@link Map }<{@link String },{@link Object }>
     */
    @GetMapping("/warningDataOverview")
    public Map<String,Object> warningDataOverview() {
        return tjfxService.queryWarningDataOverview();
    }

    @GetMapping("/expectationBusinessProcessing")
    public Map<String,Object> expectationBusinessProcessing() {
        return tjfxService.queryExpectationBusinessProcessing();
    }
}
